package com.example.front.mapper;

import com.example.front.dto.dataRport.DataReportDto;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import java.util.List;

@Mapper
public interface IncidentYearMapper {

    @Select("<script>" +
            "SELECT * FROM `incident_year` " +
            " where `tenant_id`=#{data.tenantId} " +
            " and `days`=#{data.daysStart} " +
            " </script>")
    List<DataReportDto> find(@Param("data") DataReportDto dataReportDto);


}